package com.ejzblog.mall.controller;

import com.ejzblog.mall.api.EchoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * Description：
 * </p>
 *
 * @author Mango
 * @version v1.0.0
 * @ProjectName: community-mall-master
 * @Package: com.ejzblog.mall.controller
 * @date 2021-07-12 17:31
 * @see com.ejzblog.mall.controller
 */
@RestController
@RequestMapping(value = "echo")
public class EchoController {


    @DubboReference(version = "1.0.0")
    private EchoService echoService;

    @GetMapping(value = "{string}")
    public String echo(@PathVariable String string) {
        return echoService.echo(string);
    }


}

